/*
 * File name	: GamePlay.h
 * Description	: Process action of game
 * Author		: HuyNA
 * Date			: 2014/04/20
 */
#ifndef _GAMEPLAY_H_
#define _GAMEPLAY_H_

#include <cocos2d.h>
#include "Fish.h"
#include "Constant.h"

using namespace cocos2d;

class CGamePlay:public cocos2d::CCComponent
{
public:
	CGamePlay();
	~CGamePlay();
	void stopAction();
	void actionTap();
private:
	float getDurationDown(CCPoint up, CCPoint down);
	virtual void update(float delta);
private:
	CFish* pFish;
	CCAction* curAction;

};

#endif /*_GAMEPLAY_H_*/
